package com.aimao.blog.dao;


import com.aimao.blog.pojo.Sort;
import com.aimao.blog.vo.SortAndArticleCountVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SortMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Sort record);

    int insertSelective(Sort record);

    Sort selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Sort record);

    int updateByPrimaryKey(Sort record);

    IPage<SortAndArticleCountVo> selectAll(Page page);

    IPage<SortAndArticleCountVo> selectAllByKeyWord(Page page, @Param("keyWord") String keyWord);
}